package com.itheima.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptPasswordEncoderUtils {

    private static BCryptPasswordEncoder bCryptPasswordEncode = new BCryptPasswordEncoder();

    public static String encodePassword(String password){

        return bCryptPasswordEncode.encode(password);
    }

    /*public static void main(String[] args) {
        String  password="123";
        System.out.println(encodePassword(password));
    }*/
}
